#include <scdl/parser/Symbol.hpp>

#include <cstdlib>
#include <cstring>
#include <iostream>

using std::cout;
using namespace scdl;

Record::Record()
{
}

Record::~Record()
{
}

SymbolCategory Record::getCategory()
{
        return CATEGORY_RECORD;
}

void Record::prettyPrint(bool verbose)
{
        cout << "{";
        for (int i = 0; i < size; i++) {
                elements[i]->prettyPrint(true);
                if (i < size - 1)
                        cout << ", ";
        }
        cout << "}";
}

Identifier *Record::getEntry(int idx)
{
        return static_cast<Identifier *>(getElement(idx));
}
